package cn.k7g.alloy.ioc;

import cn.k7g.alloy.expose.AlloyContentHandler;

import java.nio.charset.StandardCharsets;


/**
 * 默认的加密key实现
 * @author victor-wu
 * @date 2021/9/27 下午1:10
 */
public class DefaultAlloyContentHandler extends AlloyContentHandler {

    public static final DefaultAlloyContentHandler INSTANCE = new DefaultAlloyContentHandler();

    @Override
    public byte[] anonymousKey() {
        return "1234567890123456".getBytes(StandardCharsets.UTF_8);
    }

    @Override
    public byte[] ownerKey() {
        return null;
    }

    @Override
    public boolean isLogin() {
        return false;
    }
}
